projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaf5e65
)
panic: remove warning "'noreturn' function does return"
author
Heiko Schocher
<
[email protected]
>
Tue, 26 Jul 2011 20:55:57 +0000
(20:55 +0000)
committer
Wolfgang Denk
<
[email protected]
>
Thu, 28 Jul 2011 20:54:02 +0000
(22:54 +0200)
since commit
commit
d2e8b911c0a0661d395ccac72156040702ac842d
Author: Mike Frysinger <
[email protected]
>
Date: Wed Jun 29 11:58:04 2011 +0000
panic: add noreturn attribute
I see the following warnings:
vsprintf.c: In function 'panic':
vsprintf.c:730: warning: 'noreturn' function does return
for nearly all boards. This patch fixes this warning.
Signed-off-by: Heiko Schocher <
[email protected]
>
cc: Mike Frysinger <
[email protected]
>
lib/vsprintf.c
patch
|
blob
|
history
diff --git
a/lib/vsprintf.c
b/lib/vsprintf.c
index 3b924ec5e0d608ee09dd67faa9ff118886a1fa90..c029fbbc48191d58c1afd14c25af8e4ab2bc4971 100644
(file)
--- a/
lib/vsprintf.c
+++ b/
lib/vsprintf.c
@@
-727,4
+727,6
@@
void panic(const char *fmt, ...)
udelay (100000); /* allow messages to go out */
do_reset (NULL, 0, 0, NULL);
#endif
+ while (1)
+ ;
}